<%--
  Created by IntelliJ IDEA.
  User: 邱嘉丽
  Date: 2024/3/24
  Time: 20:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="entity.PersonBean" %>
<%
    request.setCharacterEncoding("UTF-8");
    response.setContentType("text/html; charset=UTF-8");
%>
<html>
<head>
    <title>Title</title>
    <style>
        @import url('../css/person_editStyle.css');
    </style>

</head>
<body class="bkg">
<%
    PersonBean editList = (PersonBean) request.getAttribute("editList");
%>
<div>
    <div id="headDiv">
        <div id="logo">
            <img src="../img/edit.png" width="30" height="30"/>
        </div>
        <div id="title">编辑人员信息</div>
    </div>
    <div id="mainDiv">
        <form id="form" action="personSave?id=<%=editList.getId()%>" method="post">
            <div>
                <table>
                    <tr>
                        <td>工号<span id="essential1">*</span></td>
                        <td><input type="text" id="num" name="num" class="border" placeholder="请输入6位数字编号"
                                   value="<%=editList.getPerson_number()%>"></td>
                    </tr>
                    <tr>
                        <td>姓名<span id="essential2">*</span></td>
                        <td><input type="text" class="border" name="name"
                                   value="<%=editList.getPerson_name()%>"></td>
                    </tr>
                    <tr>
                        <td>部门<span id="essential3">*</span></td>
                        <td><select class="border" name="department">

                            <option selected><%=editList.getDepartment()%></option>
                            <option>--请选择--</option>
                            <option>表面处理车间</option>
                            <option>锻压车间</option>
                            <option>组装车间</option>
                            <option>质检车间</option>
                            <option>机加车间</option>
                            <option>其他</option>
                        </select></td>

                    </tr>
                    <tr>
                        <td>入职时间<span id="essential4">*</span></td>
                        <td><input type="date" class="border" name="time"
                                   value="<%=editList.getDate()%>"></td>
                    </tr>
                    <tr>
                        <td>最高学历</td>
                        <td><input type="text" class="border" name="level"
                                   value="<%=editList.getDegree()%>"></td>
                    </tr>
                    <tr>
                        <td>专业</td>
                        <td><input type="text" class="border" name="major"
                                   value="<%=editList.getMajor()%>"></td>
                    </tr>
                    <tr>
                        <td>职称<span id="essential6">*</span></td>
                        <td><label>
                            <input type="text" class="border" name="job"
                                   value="<%=editList.getPerson_position()%>">
                        </label></td>
                    </tr>
                    <tr>
                        <td>手机号<label id="essential5">*</label></td>
                        <td><input type="tel" class="border" id="telephone" name="telephone"
                                   placeholder="请输入11位手机号"
                                   value="<%=editList.getTelephone()%>"></td>
                    </tr>
                    <tr>
                        <td>家庭住址</td>
                        <td><input type="text" class="border" name="address"
                                   value="<%=editList.getAddress()%>"></td>
                    </tr>
                    <tr>
                        <td>个人简介</td>
                        <td><input type="text" class="border" name="introduce"
                                   value="<%=editList.getIntroduce()%>"></td>
                    </tr>
                </table>
            </div>
            <div>
                <button type="submit" id="button1">保存</button>
                <button type="reset">重置</button>
            </div>

        </form>
    </div>
</div>
</body>
</html>
